Vantage Pro2 Weather Observation Communication Driver

 

Vantage Pro2 Weather Observation is driver to communicate Vantage Pro2(weather research craft) of Davis Instruments Corp. in America.

 

 

1. Read settings

 

 <Figure 1> is read setting example of Vantage Pro2 Weather Observation communication driver.

<Figure 1> Read setting example of Vantage Pro2 Weather Observation driver

 

Device Setting of <Figure 1> are input, Com Port(COM1), Com Speed(19200), Parity Bit(2), Data Bit(8), Stop Bit(1).

Also, set time for suspension of communication after LF command(0 ~ 1000mSec, Default = 50) by using option part.

 

Vantage Pro2 Weather Observation read schedule

Read schedule setting parameters are as follows :

1) STATION : Don't care. Fixed to 0.

2) Device Type : Support just one Loop. ( Refer to <Table 1> )

3) Read Start Address : Don't care.

4) Save Start Address for Communication Server : Saving start address for Communication Server.

5) Read Size : Data size to read. (Always fixed to 1)

 

Read schedule example)

READ,     0,     LOOP,     0,    0,   1,

 

<Table 1> is save address of LOOP command and contents to be used at Vantage Pro2 Weather Observation communication driver.

Device Type

Save address

Save contents

Unit or range

LOOP

Save addr + 0

Signed value of 3 hour air pressure value Trend

(Display as 'P' value, in case of Rev A)

 
Save addr + 1

Packet type(display as 0)

 
Save addr + 2

Next Record number

 
Save addr + 3

Air pressure value

inchs Hg
Save addr + 4

Air pressure value

hPa, it is same data with above air pressure value
Save addr + 5

Inner temp

¢µ(Fahrenheit)
Save addr + 6

Inner temp

¡É(Celsius), it is same data with above inner temp
Save addr + 7

Inner humidity

%
Save addr + 8

External temp

¢µ(Fahrenheit)
Save addr + 9

External temp

¡É(Celsius), it is same data with above external temp
Save addr + 10

Wind speed

mph
Save addr + 11

Wind speed for average of 10 minute

mph
Save addr + 12

Wind direction

1 ~ 360, 90 = East, 180 = South, 270 = West, 360 = North
Save addr + 13 ~ 19

7 additional temperature value

¢µ(Fahrenheit)
Save addr + 20 ~ 23

4 Soil temperature value

¢µ(Fahrenheit)
Save addr + 24 ~ 27

4 Leaf temperature value

¢µ(Fahrenheit)
Save addr + 28

External humidity

%
Save addr + 29 ~ 35

7 additional humidity value

%
Save addr + 36

Rain Rate

inchs/hour
Save addr + 37

Rain Rate

mm/hour, it is same data with above Rain Rate
Save addr + 38

UV value

 
Save addr + 39

Solar Radiation

watt/meter
Save addr + 40

Storm Rain

inchs x 100
Save addr + 41 ~ 43

Start year, month, day of current storm

Save addr + 44 ~ 46

Day/Mont/Year rainfall

inchs/hour x 100
Save addr + 47

Day ET

inchs x 1000
Save addr + 48

Month ET

inchs x 100
Save addr + 49

Year ET

inchs x 100
Save addr + 50 ~ 53

4 Soil Moisures

centibar
Save addr + 54 ~ 57

4 Leaf Wetnesses

0 ~ 15,  0 = very dry, 15 = very wet
Save addr + 58

Low Byte = Inside Alarm,

High Byte = Rain Alarm

Status value by bit
(Refer to Vantage Pro2 data)
Save addr + 59

Outside Alarm(16 bit)

Save addr + 60 ~ 63

Extra Temperature/Humidity Alarm

Save addr + 64 ~ 65

Soil & Leaf Alarm

 
Save addr + 66

Transmitter Battery state

 
Save addr + 67

Console Battery voltage

 
Save addr + 68

Forecast Icons

 
Save addr + 69

Forecast Rule Number

 
Save addr + 70 ~ 71

Sunrise hour/minute

 
Save addr + 72 ~ 73

Sunset hour/minute

 
<Table 1> Save address and contents of Vantage Pro2 Weather Observation communication driver's LOOP read command

If you click the icon 2 in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.

 
<Figure 2> Vantage Pro2 Weather Observation driver's Option dialog box
 

Communication stop time after LF command can be set at 'LF Command After Sleep Time' part of <Figure 2>.

You can set read schedule by using 3, 4, 5 button and listbox of <Figure 2>.

<Figure 3> Vantage Pro2 Weather Observation driver's read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can send command to device by using write settings

 

Digital Write

Digital write setting parameters are as follows :

1) Port             Connected Port number. (Not COM number)

2) Station         Don't care.

3) Address      Don't care

4) Extra1          Input command to output. (Output by attaching LF, CR additionally behind command)

5) Extra2          Don't care.

 

Write example 1)

Port : 0  Station : 0  Address : 0000,  Extra1 : VER, Extra2 : Blank

If you set as above and output the digital value, you can send VER command to device.

(Write command just send command to device, it isn't bring read value. Refer to communication code only.)

 

Analog Write

Analog write setting same with digital write setting.

 

3. Appearance of Vantage Pro2 device

<Figure 4> is appearance of Vantage Pro2 device, and <Figure 5> is appearance of real equipment which is installed on site(Connect with Vantage Pro2 wireless).

<Figure 4> Appearance of Vantage Pro2 device
<Figure 5> Appearance of real equipment which is installed on site(Connect with Vantage Pro2 wireless)